<?php /*  @var $model \KLF\System\Web\Responses\Model\KExceptionModel */ ?>
<html>
	<head>
		<title>KLF: Exception Encountered: <?php echo $model->Exception->getMessage() ?></title>
	</head>

	<body>

		<h1 style="color:red;font-weight:bold;">Server Error in '<?php echo $_SERVER["REQUEST_URI"] ?>' Application.</h1>	
		<hr style="color:#cccccc;"/>
		<h3 style="color:brown;font-weight:bold;">Exception of type <?php echo get_class($model->Exception) ?> was thrown</h3>
		<p>
			<span style="font-weight:bold;">Description:</span>
				An unhanded exception occured during the execution of the current web request.
		</p>
		
		<p>
			<span style="font-weight:bold;">Exception Details:</span>
				Exception of type <?php echo $model->Exception->getMessage() ?> was thrown.
		</p>
		
		<p style="font-weight:bold;">Source Error:</p>
		<div style="background-color:#FFEFD5;padding:5px;">
			<pre>
<?php 
	foreach($model->GetLines() as $line)
	{
		print "$line";
	}
?>
			</pre>
		</div>
		
		<p>
			<span style="font-weight:bold;">Source File:</span>
			<?php echo $model->Exception->getFile() ?> 
			<span style="font-weight:bold;padding-left:25px;">Line:</span>
			<?php echo $model->Exception->getLine() ?>
		</p>
		
		<p style="font-weight:bold;">Stack Trace:</p>
		<div style="background-color:#FFEFD5;padding:5px;">
			<pre>
<?php 
	echo $model->Exception->getTraceAsString();
?>
			</pre>
		</div>

	</body>
</html>